package com.atguigu.jxc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
 * 商品类别
 */
@Data
@NoArgsConstructor
@TableName("t_goods_type")
public class GoodsType {
  @TableId(value = "goods_type_id", type = IdType.AUTO)
  private Integer goodsTypeId;
  @TableField("goods_type_name")
  private String goodsTypeName;
  @TableField("p_id")
  private Integer pId;
  @TableField("goods_type_state")
  private Integer goodsTypeState;

  public GoodsType(String goodsTypeName, Integer goodsTypeState, Integer pId) {
    this.goodsTypeName = goodsTypeName;
    this.goodsTypeState = goodsTypeState;
    this.pId = pId;
  }
}
